package com.sgb.kjwl.model.entity.self;

import android.text.TextUtils;

import com.sgb.kjwl.utils.NumberUtil;

import java.util.List;

/**
 * Describe:
 * Author:
 * Date:    2021/4/12
 */
public class HistoryOfferEntity {

    //"订单编号"
    private String orderNo;
    //"订单no"
    private String orderNumber;
    //"订单状态 0 待确认 1 待发车 2 运输中 3已完成 4 已取消 5已删除")
    private Integer orderStatus;
    //"待支付结束时间"
    private Long endTime;
    //"goods_Offer 编号"
    private String no;
    //"栏高"
    private String heightHurdle;
    //"是否自卸1是")
    private Integer isDump;
    //"报价时间"
    private Long createTime;
    //"信息费"
    private String messagePrice;
    //"运费"
    private String freight;
    //"总运费"
    private String allFreight;
    //"总运程"
    private String totalDistance;

    //"当前位置 =》省名称"
    private String currentProvinceNo;
    //"当前位置 =》省名称"
    private String currentProvinceName;
    //"当前位置 =》市名称"
    private String currentCityNo;
    //"当前位置 =》市名称"
    private String currentCityName;
    //"当前位置 =》区名称"
    private String currentDistrictNo;
    //"当前位置 =》区名称"
    private String currentDistrictName;
    //"当前位置 =》详细地址"
    private String currentDetailAddress;

    //"装货时间"
    private Long shipmentTime;
    //"截止装货时间"
    private Long shipmentEndTime;

    //"更新时间"
    private Long updateTime;


    //"货源编号"
    private String goodsSourceNo;

    //"车牌号"
    private String carNumber;
    //"车型"
    private String carTypeName;
    //"车型no"
    private String carTypeNo;
    //"车长"
    private String carLenName;
    //"车长no"
    private String carLenNo;

    //出发地 =》"省名称"
    private String provinceName;
    //"市名称"
    private String cityName;
    //"区名称"
    private String districtName;
    //"详细地址"
    private String detailAddress;
    //"目的地 =》省名称"
    private String destProvinceName;
    //"目的地 =》市名称"
    private String destCityName;
    //"目的地 =》区名称"
    private String destDistrictName;
    //"目的地 =》详细地址"
    private String destDetailAddress;

    //新增字段  json字符串
    private String addField;
    //"备注"
    private String note;
    //"联系人"
    private String contrcts;
    //"联系人电话"
    private String contrctsNumber;
    //"报价状态：1已报价  2报价已同意  3报价未同意")
    private Integer offerStatus;
    //"driver_auth 表内的姓名"
    private String driverName;
    //"公司名称"
    private String companyName;

    //"自定义字段"
    private List<AddField> diyField;

    //"货源报价截止时间")
    private Long goodsEndTime;

    //"运输距离"
    private String distance;

    //报价类型  1企业 2团队 3个人
    private int offerType;
    private String accessory;//附件图片
    private long inTime;//进场时间
    private int inPointTime;//进场时间点
    private Integer freightUnit;
    private String marketingPublicity;//营销宣传
    private String invoiceInfoName;

    public String getInvoiceInfoName() {
        return invoiceInfoName;
    }

    public void setInvoiceInfoName(String invoiceInfoName) {
        this.invoiceInfoName = invoiceInfoName;
    }

    public String getMarketingPublicity() {
        return marketingPublicity;
    }

    public void setMarketingPublicity(String marketingPublicity) {
        this.marketingPublicity = marketingPublicity;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    //货物体积
    private String volume;
    //重量
    private String weight;

    public String getFreightUnit() {
        if (freightUnit == null) {
            return "元/吨";
        }
        if (freightUnit == 3) {
            return "元/方" + (TextUtils.isEmpty(volume) ? "" : " x " + NumberUtil.trim0(volume));
        } else if (freightUnit == 1) {
            return "元/趟 x 1";
        } else if (freightUnit == 2) {
            return "元/吨" + (TextUtils.isEmpty(weight) ? "" : " x " + NumberUtil.trim0(weight));
        } else
            return "元/吨";
    }

    public void setFreightUnit(Integer freightUnit) {
        this.freightUnit = freightUnit;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getHeightHurdle() {
        return heightHurdle;
    }

    public void setHeightHurdle(String heightHurdle) {
        this.heightHurdle = heightHurdle;
    }

    public Integer getIsDump() {
        return isDump;
    }

    public void setIsDump(Integer isDump) {
        this.isDump = isDump;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getMessagePrice() {
        return messagePrice;
    }

    public void setMessagePrice(String messagePrice) {
        this.messagePrice = messagePrice;
    }

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    public String getAllFreight() {
        return allFreight;
    }

    public void setAllFreight(String allFreight) {
        this.allFreight = allFreight;
    }

    public String getTotalDistance() {
        return totalDistance;
    }

    public void setTotalDistance(String totalDistance) {
        this.totalDistance = totalDistance;
    }

    public String getCurrentProvinceNo() {
        return currentProvinceNo;
    }

    public void setCurrentProvinceNo(String currentProvinceNo) {
        this.currentProvinceNo = currentProvinceNo;
    }

    public String getCurrentProvinceName() {
        return currentProvinceName;
    }

    public void setCurrentProvinceName(String currentProvinceName) {
        this.currentProvinceName = currentProvinceName;
    }

    public String getCurrentCityNo() {
        return currentCityNo;
    }

    public void setCurrentCityNo(String currentCityNo) {
        this.currentCityNo = currentCityNo;
    }

    public String getCurrentCityName() {
        return currentCityName;
    }

    public void setCurrentCityName(String currentCityName) {
        this.currentCityName = currentCityName;
    }

    public String getCurrentDistrictNo() {
        return currentDistrictNo;
    }

    public void setCurrentDistrictNo(String currentDistrictNo) {
        this.currentDistrictNo = currentDistrictNo;
    }

    public String getCurrentDistrictName() {
        return currentDistrictName;
    }

    public void setCurrentDistrictName(String currentDistrictName) {
        this.currentDistrictName = currentDistrictName;
    }

    public String getCurrentDetailAddress() {
        return currentDetailAddress;
    }

    public void setCurrentDetailAddress(String currentDetailAddress) {
        this.currentDetailAddress = currentDetailAddress;
    }

    public Long getShipmentTime() {
        return shipmentTime;
    }

    public void setShipmentTime(Long shipmentTime) {
        this.shipmentTime = shipmentTime;
    }

    public Long getShipmentEndTime() {
        return shipmentEndTime;
    }

    public void setShipmentEndTime(Long shipmentEndTime) {
        this.shipmentEndTime = shipmentEndTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public String getGoodsSourceNo() {
        return goodsSourceNo;
    }

    public void setGoodsSourceNo(String goodsSourceNo) {
        this.goodsSourceNo = goodsSourceNo;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCarTypeNo() {
        return carTypeNo;
    }

    public void setCarTypeNo(String carTypeNo) {
        this.carTypeNo = carTypeNo;
    }

    public String getCarLenName() {
        return carLenName;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getCarLenNo() {
        return carLenNo;
    }

    public void setCarLenNo(String carLenNo) {
        this.carLenNo = carLenNo;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getDestProvinceName() {
        return destProvinceName;
    }

    public void setDestProvinceName(String destProvinceName) {
        this.destProvinceName = destProvinceName;
    }

    public String getDestCityName() {
        return destCityName;
    }

    public void setDestCityName(String destCityName) {
        this.destCityName = destCityName;
    }

    public String getDestDistrictName() {
        return destDistrictName;
    }

    public void setDestDistrictName(String destDistrictName) {
        this.destDistrictName = destDistrictName;
    }

    public String getDestDetailAddress() {
        return destDetailAddress;
    }

    public void setDestDetailAddress(String destDetailAddress) {
        this.destDetailAddress = destDetailAddress;
    }

    public String getAddField() {
        return addField;
    }

    public void setAddField(String addField) {
        this.addField = addField;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getContrcts() {
        return contrcts;
    }

    public void setContrcts(String contrcts) {
        this.contrcts = contrcts;
    }

    public String getContrctsNumber() {
        return contrctsNumber;
    }

    public void setContrctsNumber(String contrctsNumber) {
        this.contrctsNumber = contrctsNumber;
    }

    public Integer getOfferStatus() {
        return offerStatus;
    }

    public void setOfferStatus(Integer offerStatus) {
        this.offerStatus = offerStatus;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public List<AddField> getDiyField() {
        return diyField;
    }

    public void setDiyField(List<AddField> diyField) {
        this.diyField = diyField;
    }

    public Long getGoodsEndTime() {
        return goodsEndTime;
    }

    public void setGoodsEndTime(Long goodsEndTime) {
        this.goodsEndTime = goodsEndTime;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public int getOfferType() {
        return offerType;
    }

    public void setOfferType(int offerType) {
        this.offerType = offerType;
    }

    public String getAccessory() {
        return accessory;
    }

    public void setAccessory(String accessory) {
        this.accessory = accessory;
    }

    public long getInTime() {
        return inTime;
    }

    public void setInTime(long inTime) {
        this.inTime = inTime;
    }

    public int getInPointTime() {
        return inPointTime;
    }

    public void setInPointTime(int inPointTime) {
        this.inPointTime = inPointTime;
    }
}
